import request from '../../utils/request';

export const deployServerPage = query => {
    return request({
        url: '/deployServer/page',
        method: 'get',
        params: query
    });
};

export const deployServerSave = data => {
    return request({
        url: '/deployServer/save',
        method: 'post',
        data: data
    });
};

export const deployServerUpdate = data => {
    return request({
        url: '/deployServer/update',
        method: 'put',
        data: data
    });
};

export const deployServerConnect = data => {
    return request({
        url: '/deployServer/connect',
        method: 'post',
        params: data
    });
};

export const deployServerDelete = data => {
    return request({
        url: '/deployServer/delete/' + data,
        method: 'delete'
    });
};